import axios from "axios"

const instance = axios.create({
  baseURL: "http://rap2api.taobao.org/app/mock/"
});
/* 配置 响应的拦截器 data 取出来 */
instance.interceptors.response.use(
  function (response) {
    return response.data;
  },
  function (error){
    return Promise.reject(error);
  }
);
export default instance;